package com.lifang.test6;

import com.lifang.framework.annotation.beans.Component;
import com.lifang.framework.beans.factory.event.ContextRefreshedEvent;
import com.lifang.framework.context.ApplicationListener;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class ApplicationRefreshEvent implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        log.info("接收到容器刷新完成广播，event = " + event.getApplicationContext() + "\n");
    }
}
